package Utils.Freebase;

import Main.SharedPref;

public class FBUtils {

 
	public static String FB_seperator = "\\t";
	public static String MID_seperator = ",";
	public static String FB_fileSuffix = ".tsv";
	
	public static String GetTVFilePathFromID(String id) {
		StringBuilder fileSB = new StringBuilder();

		fileSB.append(SharedPref.Tv_DB_Folder);

		if (id.equals("tv_segment_performances")) {
			fileSB.append("tv_segment_performance");
		}

		if (id.equals("starring_roles")) {
			fileSB.append("regular_tv_appearance");  
		}

		if (id.equals("guest_roles")) {
			fileSB.append("tv_guest_role");
		}

		fileSB.append(FB_fileSuffix);

		return fileSB.toString();

	}
	
	public static String GetFILMFilePathFromID(String id) {
		StringBuilder fileSB = new StringBuilder();

		fileSB.append(SharedPref.Film_DB_Folder);

		if (id.equals("film")) {
			fileSB.append("film");
		}else if(id.equals("film_role")){
			fileSB.append("performance");
		}


		fileSB.append(FB_fileSuffix);

		return fileSB.toString();

	}

	public static String GetMeasurementUnitFilePath(String id) {
		StringBuilder fileSB = new StringBuilder();

		fileSB.append(SharedPref.Measurement_Unit_Folder);

		
		if (id.equals("money_value")) {
			fileSB.append("dated_money_value");
		}
		
		fileSB.append(FB_fileSuffix);
		
		return fileSB.toString();
	}



}
